<!DOCTYPE HTML>
<html>

<body>
<p>Index.php</p>

<a href="ff_extras/buildDatabase.php">buildDatabase.php</a><br>
<a href="ff_extras/fillDemoData.php">fillDemoData.php</a>
<br><br><br>

<?php
include("ff_includes/class_database.php");
/*include("ff_includes/class_article.php");
include("ff_includes/class_category.php");
include("ff_includes/class_menu.php");
include("ff_includes/class_menuItem.php");
*/
include("ff_includes/class_user.php");
include("ff_includes/class_game.php");
include("ff_includes/class_gametype.php");
include("ff_includes/class_gamevenue.php");
include("ff_includes/class_player.php");
include("ff_includes/class_scorer.php");
include("ff_includes/class_season.php");
include("ff_includes/class_team.php");



$db = new Database();
$user = User::getUserByLogin("lopo");
print_r($user->getNicename());

$game = Game::getGameById(1);
print_r($game->getHometeam());
print_r("fertig");

/*
$stmt = $db->prepare("select * from testtable where id = :id");
$stmt->bindValue(":id", 3);
$stmt->execute();
$result = $stmt->fetchAll();
print_r($result);*/

//$article = Article::getArticleById(2);
//$article_list = Article::getArticleListByCategory(1);
//print_r(MenuItem::getMenuItemList());
/*$article = $article_list[0];
print_r($article->getTitle()." *** ");
print_r($article->getContent()." *** ");
print_r($article->getId()." *** ");
print_r($article->getCreated()." *** ");

$category = Category::getCategoryById(1);
print_r($category->getName()." *** ");
*/
/*
$data = array();
$data['article_author'] = 1;
$data['article_created'] = date("Y-m-d H:i:s");
$data['article_modified'] = date("Y-m-d H:i:s");
$data['article_title'] = utf8_decode("Ein selber geschriebener Artikel");
$data['article_content'] = utf8_decode("blad  asklfjsl jlös flöksjf kajsf lajs flajs löasj flöas jfsjiasfj öasf.");
$data['article_site'] = 0;

$article = new Article($data);
$article->insert();
print_r($article->getId());
$article->delete();*/


?>

</body>
</html>
